package com.wanxi.demo;

/**
 * 100以内出现7的次数
 */
public class SevenCount {
    public static void main(String[] args) {
        int count = 0;
        for (int i = 1; i <= 100; i++) {
            if (i % 10 == 7 || i / 10 % 10 == 7) {
                count++;
            }
        }
        System.out.println(count);
    }
}
